package com.jzlx.domain;

import com.jzlx.utils.IpUtil;

import java.util.List;

/**
 * @description:
 * @author: zhulei
 * @create: 2025-03-24 17:50
 **/
public class MassageInfo {
    private OperatingSystemInfo operatingSystemInfo;
    private CpuInfo cpuInfo;
    private MemoryInfo memoryInfo;
    private DiskSpaceInfo diskSpaceInfo;
    private List<String> ipList;

    public MassageInfo() {
    }

    public MassageInfo(OperatingSystemInfo operatingSystemInfo, CpuInfo cpuInfo, MemoryInfo memoryInfo, DiskSpaceInfo diskSpaceInfo) {
        this.operatingSystemInfo = operatingSystemInfo;
        this.cpuInfo = cpuInfo;
        this.memoryInfo = memoryInfo;
        this.diskSpaceInfo = diskSpaceInfo;
        this.ipList = IpUtil.getLocalIPv4s();
    }

    public OperatingSystemInfo getOperatingSystemInfo() {
        return operatingSystemInfo;
    }

    public void setOperatingSystemInfo(OperatingSystemInfo operatingSystemInfo) {
        this.operatingSystemInfo = operatingSystemInfo;
    }

    public CpuInfo getCpuInfo() {
        return cpuInfo;
    }

    public void setCpuInfo(CpuInfo cpuInfo) {
        this.cpuInfo = cpuInfo;
    }

    public MemoryInfo getMemoryInfo() {
        return memoryInfo;
    }

    public void setMemoryInfo(MemoryInfo memoryInfo) {
        this.memoryInfo = memoryInfo;
    }

    public DiskSpaceInfo getDiskSpaceInfo() {
        return diskSpaceInfo;
    }

    public void setDiskSpaceInfo(DiskSpaceInfo diskSpaceInfo) {
        this.diskSpaceInfo = diskSpaceInfo;
    }

    public List<String> getIpList() {
        return ipList;
    }

    public void setIpList(List<String> ipList) {
        this.ipList = ipList;
    }
}
